package com.example.demo.config;

import com.example.demo.web.filter.LoginValidateFilter;
import com.example.demo.web.filter.PermissionValidateFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.config.EnableWebFlux;
import org.springframework.web.reactive.config.WebFluxConfigurer;
import org.springframework.web.server.WebFilter;

@Configuration
@EnableWebFlux
public class WebConfig implements WebFluxConfigurer {

    //@Bean
    public WebFilter loginValidateFilter() {
        return new LoginValidateFilter();
    }
    //@Bean
    public WebFilter permissionValidateFilter() {
        return new PermissionValidateFilter();
    }
}
